package cn.suxiaoxiang.mmskillbar.utils;

import io.lumine.xikage.mythicmobs.api.bukkit.BukkitAPIHelper;
import org.bukkit.Bukkit;
import org.bukkit.entity.Entity;

/**
 * @author Corder-Suxiaoxiang
 * @UserName 程序员_Suxiaoxiang
 * @date 2025/2/28 17:16
 * @Version 1.0
 */
public class playerCastSkill {
    /**
     * 判断玩家是否正常释放了技能
     * @Username 程序员-Su_xiaoxiang
     * @date 2025/2/28 17:17
     * @return  boolean
     */
    public boolean castSkill(Entity e,String skillName){
        BukkitAPIHelper bukkitAPIHelper = new BukkitAPIHelper();
        boolean b = bukkitAPIHelper.castSkill(e, skillName);
        //Bukkit.getServer().getConsoleSender().sendMessage(e+"释放技能"+skillName+"是否成功"+b);
        return b;
        }
}
